package com.oc.claimobs.bb.dao;

import java.util.Hashtable;
import java.util.Vector;

import com.oc.claimobs.bb.facade.Persistance;

public class MemoryDao implements Persistance{

	private static MemoryDao instance = new MemoryDao();
	
	public static MemoryDao getInstance(){
		return instance;
	}
	
	private Hashtable persistance = new Hashtable();
	
	public void saveOrUpdate(Object key, Object o){
		persistance.put(key, o);
	}
	
	public void delete(Object key){
		persistance.remove(key);
	}
	
	public Object getByKey(Object key){
		return persistance.get(key);
	}
		
	
	

	
	
}
